﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessModel.ExpertJudge

@{
    ViewBag.Title = "Edit";
}

<h2>编辑评委信息</h2>
<div id="operate">
    @Html.ActionLink("返回", "Go2ReturnUrl", new { returnUrl = (object)ViewBag.ReturnUrl })
</div>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit">
        <legend></legend>

        <div class="editor-label">
            评委组：
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.ExpertGroup.Callsign)
        </div>

        <div class="editor-label">
            评委编号：
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.SerialNumber)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.RealName)*@真实姓名：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RealName)
            @Html.ValidationMessageFor(model => model.RealName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Gender)*@性别：
        </div>
        <div class="editor-field">
            @Html.DropDownList("Gender")
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.BirthDate)*@出生日期：
        </div>
        <div class="editor-field">
            <input class="text-box single-line" id="BirthDate" name="BirthDate" type="text" value="@Html.DisplayFor(model => model.BirthDate)" />
            @Html.ValidationMessageFor(model => model.BirthDate)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Phone)*@联系电话：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ContactAddress)*@通讯地址：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactAddress)
            @Html.ValidationMessageFor(model => model.ContactAddress)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.ZipCode)*@邮政编码：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Email)*@邮件：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-btn">
            @Html.Hidden("ReturnUrl", (object)ViewBag.ReturnUrl)
            @Html.Hidden("UserID", Model.UserID)
            @Html.Hidden("ExpertGroupID", Model.ExpertGroupID)
            <input type="submit" value=" 保存 " />&#8195;
           @Html.ActionLink("重置密码", "ResetPassword", "Account", new
      {
          userName = Model.SerialNumber,
          returnUrl = HttpContext.Current.Request.RawUrl
      }, null)
        </div>
    </fieldset>
}

<script>
    var pikaday1 = new Pikaday({
        field: document.getElementById('BirthDate'),
        firstDay: 1,
        minDate: new Date('1905-01-01'),
        maxDate: new Date('2025-12-31'),
        yearRange: [1905, 2025],
        onSelect: function () { }
    });
</script>
